package com.stenio.fancat.mapper.shop;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.stenio.fancat.domain.shop.FcRedOrder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author liuan
 * @create 2019-02-12 09:46
 */
@Repository
public interface FcRedOrderMapper extends BaseMapper<FcRedOrder> {

    int insertRedOrder(FcRedOrder fcRedOrder);

    //通过userId查询订单
    List<FcRedOrder> selectRedOrder(String id);

    //通过userid和businessid查询订单
    List<FcRedOrder> selectRedOrderByUAndB(@Param("id") String id,@Param("businessId") Integer businessId);

    List<FcRedOrder> selectByConditionPage(Pagination page, FcRedOrder act);

    FcRedOrder selectById(String id);

    int updateRedOrder(FcRedOrder fcRedOrder);

}
